#define _CRT_SECURE _NO_WARNINGS 1
#include<stdio.h>
int is_leap_year(int y)
{
	int a = 0;
	if ((y % 100 != 0)||(y%400==0))
	{
		return 1;
	}
	else
        return 0;
}
int main()
{
	int i = 0;
	int count = 0;
	for (i = 1000;i <= 2000;i+=4)
	{
		if (is_leap_year(i) == 1)
		{
			printf("%d\n", i);
			count++;
		}
	}
	printf("count=%d", count);
	return 0;
}